From: Ewan Mellor Date: Tue, 5 Sep 2006 13:17:49 +0000 (+0100) Subject: The attached patch prevents a domain with an attached vTPM from doing X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15668^2~17^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=cbf197aa0d9bd7affb10532e10fff4006b72912c;p=xen.git The attached patch prevents a domain with an attached vTPM from doing local migration since this does not seem to work correctly (see tests in xm test suite). If no vTPM has been attached, the local migration proceeds as usual. Signed-off-by: Stefan Berger --- diff --git a/tools/examples/vtpm-common.sh b/tools/examples/vtpm-common.sh index 2e4c89dfdb..e5e8ddbbf5 100644 --- a/tools/examples/vtpm-common.sh +++ b/tools/examples/vtpm-common.sh @@ -48,6 +48,9 @@ else function vtpm_migrate() { echo "Error: vTPM migration accross machines not implemented." } + function vtpm_migrate_local() { + echo "Error: local vTPM migration not supported" + } function vtpm_migrate_recover() { true } @@ -353,6 +356,8 @@ function vtpm_migration_step() { local res=$(vtpm_isLocalAddress $1) if [ "$res" == "0" ]; then vtpm_migrate $1 $2 $3 + else + vtpm_migrate_local fi } diff --git a/tools/examples/vtpm-impl b/tools/examples/vtpm-impl index bd6288d636..e45c6a170f 100644 --- a/tools/examples/vtpm-impl +++ b/tools/examples/vtpm-impl @@ -184,3 +184,6 @@ function vtpm_migrate_recover() { echo "Error: Recovery not supported yet" } +function vtpm_migrate_local() { + echo "Error: local vTPM migration not supported" +}